<template>
  <div class="m-header">
    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" :router="true">
      <el-menu-item index="/">主页</el-menu-item>
      <el-menu-item index="/service">服务</el-menu-item>
      <el-menu-item index="/case">案例</el-menu-item>
      <el-menu-item index="/experience">团队经验</el-menu-item>
      <el-menu-item index="/follow">扫码关注</el-menu-item>
      <el-menu-item index="/contact">联系我们</el-menu-item>
    </el-menu>
    <div class="line"></div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    data() {
      return {
        activeIndex: '/'
      }
    },
    methods: {
      handleSelect(key, keyPath) {
        console.log(key,keyPath)
      }
    }
  }
</script>

<style scoped lang="less">
</style>
